package com.woniu.elderly.operation.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.atomic.AtomicInteger;

public class SerialNumberGenerator {
    private static final String DATE_FORMAT = "yyyyMMdd" ;
    private static final int NUMBER_WIDTH=3;
    private static final int MAX_NUMBER = 999;
    private static AtomicInteger number = new AtomicInteger(0);
    public static String generateorderNumber( ) {
        Date date = new Date( );
        SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);
        String prefix = dateFormat.format(date);


    return prefix ;
}

}
